/**
 * Created by will on 2017/9/27.
 */
$(function () {
    $('#add-newroomstyle').click(function () {
        window.location.href="./easytrip-roominfo-scan.html"
    })
    //分页信息
    layui.use(['laypage', 'layer','table'], function() {
        var laypage = layui.laypage
            , layer = layui.layer
        ,table = layui.table;
        laypage.render({
            elem: 'roominfo-paging'
            , count: 100
            , theme: '#45A2FF'
            , groups: 4
            ,prev: '<em><</em>'
            ,next: '<em>></em>'
            , layout: ['prev', 'page', 'next', 'skip']
            , jump: function (obj) {
                console.log(obj)
            }
        });
        laypage.render({
            elem: 'roominfo2-paging'
            , count: 100
            , theme: '#45A2FF'
            , groups: 4
            ,prev: '<em><</em>'
            ,next: '<em>></em>'
            , layout: ['prev', 'page', 'next', 'limit', 'skip']
            , jump: function (obj) {
                console.log(obj)
            }
        });
    });
})